﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ERPStudio;
using System.Data.SqlClient;

namespace ResUma
{
    public partial class ImportFrm : FrmRezumat
    {
        public ImportFrm(ModuleClass mc): base(mc)
        {
            InitializeComponent();
        }

   
        private void ImportFrm_Load(object sender, EventArgs e)
        {
            SqlConnection con = DeschideConexiune(workConnString);

            SqlCommand com = new SqlCommand("resuma_ImportPersSal", con);
            com.CommandType = CommandType.StoredProcedure;
            com.Parameters.Add("CodUnitate", ModuleInfo.CodUnitate);
            com.ExecuteNonQuery();

            this.import_PersoaneTableAdapter.Connection = con;
            this.import_PersoaneTableAdapter.Fill(this.importPesSalDataSet.Import_Persoane);
            InchideConexiune(con);

            AddBindingSource(import_PersoaneBindingSource);
            AddTableAdaptor(import_PersoaneTableAdapter.Adapter);
        }
    }
}
